import PageTools from '@/components/PageTools'
import UploadImg from '@/components/UploadImg'
import Lang from '@/components/Lang'
import ScreenFull from '@/components/ScreenFull'
// 自定义插件
export default {
  install(Vue) {
    // install当使用Vue.use()注册就会自动执行 obj接收的是Vue的构造函数
    console.log(Vue, 'obj')
    // console.log(obj === Vue)
    // 注册全局的组件 PageTools
    Vue.component('PageTools', PageTools)
    Vue.component('UploadImg', UploadImg)
    Vue.component('Lang', Lang)
    Vue.component('ScreenFull', ScreenFull)
  }
}
